package com.itheima;

import lombok.extern.java.Log;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.transaction.annotation.EnableTransactionManagement;

//过滤器扫描
//会自动扫描@WebServlet , @WebFilter , @WebListener 自动注册Servlet的相关组件
@ServletComponentScan
@Slf4j
@SpringBootApplication
@EnableTransactionManagement//开启对事物管理的支持
@EnableCaching//开启缓存注解功能
public class ReggieWaimaiApplication {
    public static void main(String[] args) {
        SpringApplication.run(ReggieWaimaiApplication.class, args);
        log.info("项目启动成功...");
    }

}
